export interface JiraRequestData extends ApiBasePageQuery {
  code?: string
  pcode?: string
  projectId?: number
  status: string
  type: string
  statusList: string[]
  typeList: string[]
  // checkResult?: string
  assignee: string
  //经办人所属组
  assigneeGroup?: number
  //工时是否超时
  overflow?: boolean
  bugTyoe?: string
}
// jira 列表页data
export interface JiraData {
  createTime?: string
  id: number
  projectId?: number
  projectName?: string
  code: string
  pcode: string
  assignee: string
  reporter?: string
  content: string
  duration?: number
  usedTime?: number
  durationHour?: number
  usedTimeHour?: number
  totalUsedTime?: number
  totalUsedTimeHour?: number
  subUsedTime?: number
  subUsedTimeHour?: number
  checkResult?: string
  status?: string
  type?: string
  settleYear?: number
  releaseDate?: string
  creadted?: string
  versionName?: string
  createName?: string
  totalUsedPersonDays?: string
  usedPersonDays?: string
  subUsedPersonDays?: string
  planStartDate?: string
  planEndDate?: string
  actualCompleteDate?: string
  bugType?: string
  bugTypeText?: string
}

export interface JiraWorkReportsData {
  jira: string //jira
  userName: string //姓名
  date: string //日期
  duration: number //工时
  content: string //内容
}

// 一个jira的工时详情，包括子jira的工时
export interface JiraReportDetailData {
  jira: JiraData //jira信息
  workReports: JiraWorkReportsData[] //本身的工时
  subWorkReports: JiraWorkReportsData[] //子jira的工时
}

export interface JiraImportData {
  projectId?: number // 项目id
  codes: string[] // jira code 列表
}

export type JiraResponseData = ApiResponseData<ApiPageInfo<JiraData>>
